package com.desay.pangoo.itmt.repository;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.desay.pangoo.itmt.entity.KeyTechRoadMapEntity;

/**
 * @author uidq1163
 */
@Repository
public interface KeyTechRoadMapRepository
		extends JpaSpecificationExecutor<KeyTechRoadMapEntity>, PagingAndSortingRepository<KeyTechRoadMapEntity, Long> {

	/**
	 * 判断技术编号是否存在
	 * 
	 * @param techPtn
	 * @return
	 */
	KeyTechRoadMapEntity findByTechPtn(String techPtn);
	
	/**排除当前id，技术编号不能重复*/
	KeyTechRoadMapEntity findByIdNotAndTechPtn(Long id,String techPtn);

}